/**
  * @file		MeterRS485.h
  * @author		Krubkib
  * @version	V1.0.0
  * @date		October 19, 2013
  * @brief		UART of Meter
  */
#ifndef __mETERRJ485_H
#define __mETERRJ485_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include <stm32f4xx.h>
	 
/* Public typedef ------------------------------------------------------------*/
/* Public define -------------------------------------------------------------*/
/* Public macro --------------------------------------------------------------*/
/* Public variables ----------------------------------------------------------*/
extern volatile uint8_t UART_TxReady;
extern volatile uint8_t UART_RxByte;
	 
/* Public function prototypes ------------------------------------------------*/
void UART_config(uint32_t baud_rate);
void UART_write(uint8_t val);
uint8_t UART_read(void);

#ifdef __cplusplus
}
#endif

#endif /* __mETERRJ485_H */
